//package com.anyou.mall.pla.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.pla.domain.PlaCarPartsCity;
//import com.anyou.mall.pla.service.IPlaCarPartsCityService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 汽配城Controller
// *
// * @author YLJ
// * @date 2022-03-18
// */
//@Api(tags = "汽配城")
//@RestController
//@RequestMapping("/pla/carPartsCity")
//public class PlaCarPartsCityController extends BaseController
//{
//    @Autowired
//    private IPlaCarPartsCityService plaCarPartsCityService;
//
//    /**
//     * 查询汽配城列表
//     */
//    @ApiOperation("查询汽配城列表")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<PlaCarPartsCity>> list(PlaCarPartsCity plaCarPartsCity)
//    {
//        startPage();
//        List<PlaCarPartsCity> list = plaCarPartsCityService.selectPlaCarPartsCityList(plaCarPartsCity);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出汽配城列表
//     */
//    @ApiOperation("导出汽配城列表")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:export')")
//    @Log(title = "汽配城", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, PlaCarPartsCity plaCarPartsCity)
//    {
//        List<PlaCarPartsCity> list = plaCarPartsCityService.selectPlaCarPartsCityList(plaCarPartsCity);
//        ExcelUtil<PlaCarPartsCity> util = new ExcelUtil<PlaCarPartsCity>(PlaCarPartsCity.class);
//        util.exportExcel(response, list, "汽配城数据");
//    }
//
//    /**
//     * 获取汽配城详细信息
//     */
//    @ApiOperation("获取汽配城详细信息")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:query')")
//    @GetMapping(value = "/{carPartsCityId}")
//    public ApiResult<PlaCarPartsCity> getInfo(@PathVariable("carPartsCityId") Long carPartsCityId)
//    {
//        return ApiResult.success(plaCarPartsCityService.selectPlaCarPartsCityByCarPartsCityId(carPartsCityId));
//    }
//
//    /**
//     * 新增汽配城
//     */
//    @ApiOperation("新增汽配城")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:add')")
//    @Log(title = "汽配城", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody PlaCarPartsCity plaCarPartsCity)
//    {
//        return ApiResult.success(plaCarPartsCityService.insertPlaCarPartsCity(plaCarPartsCity));
//    }
//
//    /**
//     * 修改汽配城
//     */
//    @ApiOperation("修改汽配城")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:edit')")
//    @Log(title = "汽配城", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody PlaCarPartsCity plaCarPartsCity)
//    {
//        return ApiResult.success(plaCarPartsCityService.updatePlaCarPartsCity(plaCarPartsCity));
//    }
//
//    /**
//     * 删除汽配城
//     */
//    @ApiOperation("删除汽配城")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:remove')")
//    @Log(title = "汽配城", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{carPartsCityIds}")
//    public ApiResult remove(@PathVariable Long[] carPartsCityIds)
//    {
//        return ApiResult.success(plaCarPartsCityService.deletePlaCarPartsCityByCarPartsCityIds(carPartsCityIds));
//    }
//
//    /**
//     * 查询所有汽配城
//     */
//    @ApiOperation("查询所有汽配城")
//    @PreAuthorize("@ss.hasPermi('pla:carPartsCity:all')")
//    @GetMapping("/all")
//    public ApiResult<List<PlaCarPartsCity>> all(PlaCarPartsCity plaCarPartsCity)
//    {
//        List<PlaCarPartsCity> list = plaCarPartsCityService.selectPlaCarPartsCityList(plaCarPartsCity);
//        return ApiResult.success(list);
//    }
//}
